package com.sh.ndt.common.dao;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.transaction.PlatformTransactionManager;

/**
 * A subclass of Spring framework's JdbcDaoSupport class to serve
 * as the base class for all other DAOs of Trax Web app
 * 
 * @author Manjula N. Hosadurga
 */
public class BaseDAO extends JdbcDaoSupport {
    protected JdbcTemplate jdbcTemplate;
    protected PlatformTransactionManager transactionManager;

    public PlatformTransactionManager getTransactionManager() {
        return transactionManager;
    }

    public void setTransactionManager(PlatformTransactionManager transactionManager) {
        this.transactionManager = transactionManager;
    }   
    
}
